<?php

 /**
  * @package JooS
  * @subpackage PHPackager
  */

  require_once "JooS/Helper/Abstract.php";

  class JooS_PHPackager_Helper_Constant extends JooS_Helper_Abstract {
    public function __invoke($className, $constName = null) {
      if (is_null($constName)) {
        return constant($className);
      }
      else {
        require_once "JooS/Loader.php";

        JooS_Loader::loadClass($className);
        return constant($className . "::" . $constName);
      }
    }
  }
